package com.dailyblue.java.standard.design.手撕MyBatisPlus;

public class App {
    public static void main(String[] args) {
        SqlSession sqlSession = new SqlSession();
        DeptMapper mapper = sqlSession.getMapper(DeptMapper.class);
        Dept dept = new Dept();
        dept.setDeptNo(10);
        dept.setDname("xiaoshoubu");
        dept.setLoc("xian");
        mapper.insert(dept);
        System.out.println("--------------------");
        EmpMapper mapper1 = sqlSession.getMapper(EmpMapper.class);
        Emp emp = new Emp();
        emp.setEmpNo(1011);
        emp.setEname("张三");
        emp.setSal(3909.3);
        mapper1.insert(emp);
    }
}
